package com.mall.mymall.mapper;

import com.mall.mymall.dao.dto.OrderDetailsDto;
import com.mall.mymall.dao.entity.OrderDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 十里坡
 * @since 2025-03-06
 */
public interface OrderDetailsMapper extends BaseMapper<OrderDetails> {

    public List<OrderDetails> getByOrderId(Integer orderId);

    int updateBatchIds(@Param("list") List<OrderDetails> orderDetails);

    int saveBatch(@Param("list") List<OrderDetails> orderDetails);

    List<OrderDetailsDto> getOrderDetails(@Param("orderId") Integer orderId);
}
